// 实现三个基本的方法实现对localstorage的操作
export const setItem = (name, obj) => {
  localStorage.setItem(name, JSON.stringify(obj))
}
export const getItem = name => {
  return JSON.parse(localStorage.getItem(name))
}
export const removeItem = (name) => {
  localStorage.removeItem(name)
}
